HttpManager

open class HttpManager constructor(userAgent: String, queryString: String? = null, proxyConfig: <Error class: unknown class>? = null, customDns: <Error class: unknown class>? = null, highTimeouts: Boolean = false, mirrorChooser: MirrorChooser = MirrorChooserRandom(), httpClientEngineFactory: <Error class: unknown class><out <Error class: unknown class>> = getHttpClientEngineFactory( customDns ))

Constructors

Link copied to clipboard
constructor(userAgent: String, queryString: String? = null, proxyConfig: <Error class: unknown class>? = null, customDns: <Error class: unknown class>? = null, highTimeouts: Boolean = false, mirrorChooser: MirrorChooser = MirrorChooserRandom(), httpClientEngineFactory: <Error class: unknown class><out <Error class: unknown class>> = getHttpClientEngineFactory( customDns ))

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun get(request: DownloadRequest, skipFirstBytes: Long? = null, receiver: <Error class: unknown class>)
Link copied to clipboard

Gets the InputStream for the given request as a DigestInputStream, so you can verify the SHA-256 hash. If you don't need to verify the hash, use getInputStream instead.

Link copied to clipboard
Link copied to clipboard
suspend fun head(request: DownloadRequest, eTag: String? = null): HeadInfo?

Performs a HEAD request and returns HeadInfo.

Link copied to clipboard
suspend fun post(url: String, json: String, proxy: <Error class: unknown class>? = null)